package com.zingrow.web.report.model;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

public class DimensionPlanRanking {
	private Long id;

	private Integer planId;

	private String dataId;

	private String dataTitle;

	private String dataUrl;

	private String domainName;

	private Integer reprintNum;

	private String dataAuthor;

	private Date publishTime;

	private Date countTime;

	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getPlanId() {
		return planId;
	}

	public void setPlanId(Integer planId) {
		this.planId = planId;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	public String getDataTitle() {
		return dataTitle;
	}

	public void setDataTitle(String dataTitle) {
		if (StringUtils.isNotBlank(dataTitle)) {
			if (dataTitle.length() > 50) {
				dataTitle = dataTitle.substring(0, 50);
			}
			this.dataTitle = dataTitle;
		} else {
			this.dataTitle = "";
		}
	}

	public String getDataUrl() {
		return dataUrl;
	}

	public void setDataUrl(String dataUrl) {
		this.dataUrl = dataUrl;
	}

	public String getDomainName() {
		return domainName;
	}

	public void setDomainName(String domainName) {
		this.domainName = domainName;
	}

	public Integer getReprintNum() {
		return reprintNum;
	}

	public void setReprintNum(Integer reprintNum) {
		this.reprintNum = reprintNum;
	}

	public String getDataAuthor() {
		return dataAuthor;
	}

	public void setDataAuthor(String dataAuthor) {
		this.dataAuthor = dataAuthor;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Date getCountTime() {
		return countTime;
	}

	public void setCountTime(Date countTime) {
		this.countTime = countTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "DimensionPlanRanking [id=" + id + ", planId=" + planId + ", dataId=" + dataId + ", dataTitle="
				+ dataTitle + ", dataUrl=" + dataUrl + ", domainName=" + domainName + ", reprintNum=" + reprintNum
				+ ", dataAuthor=" + dataAuthor + ", publishTime=" + publishTime + ", countTime=" + countTime
				+ ", updateTime=" + updateTime + "]";
	}

}